<?php

namespace application\demo_wechat;

use EasyWeChat\Factory;
use EasyWeChat\Kernel\Messages\Text;

// 回调类 扩展
class Notify{

  function __construct(){

  }


  // 微信支付回调
  // $data_xml 微信回调xml已经转换为 array数组
  // http://localhost/phpwork/data/pay/wechat/notify.php
  function wechat($data_xml){
    
    $data = [
      'order_no'=> date('Y-m-d H:i:s'),
      'status' => '已付款',
      'payment_time' => time(),
      'create_time' => time(),
    ];
    $ok = pdo_insert('demo_wechat_order',$data); // 测试  实际应该是订单更新


  }


}
